<template>
    <div>
     <p>{{ message }}</p>
     <button @click="reFn">逆转世界</button>
    </div>
  </template>
  
  <script>
  export default {
     data(){
      return{
         message :'Hello,World'
      }
     },
     methods: {
      reFn(){
        this.message = this.message.split('').reverse().join('')
      }
     }
  }
  </script>
  
  <style>
  
  </style>